package com.qingke.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.qingke.mapper.LearningEffectMapper;
import com.qingke.pojo.LearningEffect;
import com.qingke.service.LearningEffectService;
@Service("learningEffectService")
public class LearningEffectServiceImpl implements LearningEffectService {
	@Resource
	private LearningEffectMapper leDao;

	public int saveLearningEffect(LearningEffect record) {
		return leDao.insertSelective(record);
	}

	public int softdelete(int id) {
		return leDao.softDelete(id);
	}

	public LearningEffect getLearningEffectById(int id) {
		return leDao.selectByPrimaryKey(id);
	}

	public List<LearningEffect> listLearningEffectByStudentId(int studentId) {
		return leDao.listLearningEffectByStudentId(studentId);
	}

	public int updateLearningEffect(LearningEffect record) {
		return leDao.updateByPrimaryKeySelective(record);
	}

}
